\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{geometry,alltt,graphicx}
\geometry{verbose,a4paper,tmargin=3cm,bmargin=3cm,lmargin=2cm,rmargin=2cm}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{hyperref}

\usepackage{color}

% Para los títulos de los chapters.
\usepackage{quotchap}

% Para manejar mejor los headers.
\usepackage{fancyhdr}
\pagestyle{fancy}

%~ Para las tablas
\usepackage[small, bf, labelformat = empty]{caption}	
\usepackage{subfig}
\usepackage{float}
\restylefloat{table}

\def\name{Nadia Mariel Heredia Favieri}

% Metadata, PDF properties
\hypersetup{
  %~ colorlinks = true,
  urlcolor = black,
  pdfborder = {0 0 0},
  pdfauthor = {\name},
  pdfkeywords = {},
  pdftitle = {Apunte para el final},
  pdfsubject = {Apunte para el final},
  pdfpagemode = UseNone
}

%\usepackage{microtype}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.

% Nombre de capítulos en minúsculas.
\renewcommand{\chaptermark}[1]{% 
\markboth{\thechapter.\ #1}{}} 

\lhead{\nouppercase{\rightmark}}
\rhead{\nouppercase{\leftmark}}

% footnote sin numero
\def\blfootnote{\xdef\@thefnmark{}\@footnotetext}

% para agregar margen cuando quiera
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist

% caption de las figuras en bold
\renewcommand{\fnum@figure}{\textbf{Figura \thefigure}}

% =def
\def\defas{\stackrel{\text{\tiny def}}{=}}

% teoremas
\theoremstyle{definition}
\newtheorem{theorem}{Teorema}[section]
\newtheorem{lemma}[theorem]{Lema}
\newtheorem{proposition}[theorem]{Proposición}
\newtheorem{property}[theorem]{Propiedad}
\newtheorem{corollary}[theorem]{Corolario}

\newenvironment{definition}[1][Definición.]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{example}[1][Ejemplo.]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\newenvironment{remark}[1][Observación.]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}

\usepackage{babel}
\deactivatetilden
\makeatother
